//1.引入创建仓库的函数
//a.1 使用redux-thunk 支持异步请求 applyMiddleware
import {createStore,applyMiddleware} from "redux";


//2.引入reducer
import reducer from "./reducers";
//a.2 reduxThunk 引入
import reduxThunk from "redux-thunk"


// 3.导出仓库
//a.3 将reduxThunk 作为第二个采纳数传入
export default createStore(reducer,applyMiddleware(reduxThunk))
// export default createStore(reducer)